package com.example.domain.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
@Schema(description = "菜单DTO")
public class MenuDTO {
    
    private Long id;

    @NotBlank(message = "菜单名称不能为空")
    @Schema(description = "菜单名称")
    private String title;

    @Schema(description = "父菜单ID")
    private Long parentId;

    @NotNull(message = "菜单类型不能为空")
    @Schema(description = "菜单类型（0：目录 1：菜单 2：按钮）")
    private Integer type;

    @Schema(description = "路由路径")
    private String path;

    @Schema(description = "组件路径")
    private String component;

    @Schema(description = "权限标识")
    private String permission;

    @Schema(description = "图标")
    private String icon;

    @Schema(description = "排序")
    private Integer sort = 0;

    @Schema(description = "是否显示（0：隐藏 1：显示）")
    private String visible = "1";

    @Schema(description = "状态（0：禁用 1：正常）")
    private String status = "1";
} 